package com.toro.server.handler;

import com.toro.message.PingMessage;
import com.toro.message.PongMessage;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;
import lombok.extern.slf4j.Slf4j;

/**
 * @ClassName: HeartBeatServerHandler
 * @Description: 接受心跳处理器
 * @Author: ToroLHZ
 * @Date: 2023/12/12 19:46
 */
@Slf4j
@ChannelHandler.Sharable
public class HeartBeatServerHandler extends SimpleChannelInboundHandler<PingMessage> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, PingMessage msg) throws Exception {
        log.debug("心跳数据{}",msg);
    }
}
